import request from '@/utils/request'
import { userApi } from './url'

/**
 * @description 登陆
 * @export
 * @param {*} parameter
 * @return {*}
 */
export function login(parameter) {
	return request({
		url: userApi.Login,
		method: 'post',
		data: parameter,
	})
}

/**
 * @description 登出
 * @export
 * @return {*}
 */
export function logout() {
	return request({
		url: userApi.Logout,
		method: 'post',
	})
}
